home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / tasksel / info / desktop.preinst next >
Text File  |  2008-10-10  |  439b  |  13 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. # We install the X server early on so that other packages (e.g. usplash) can
  5. # get at the resolution it configures. It is listed as part of the task,
  6. # which will take care of its removal when the task is removed.
  7. for pkg in xserver-xorg; do
  8.     if apt-cache show "$pkg" >/dev/null 2>&1 &&
  9.        ! dpkg --get-selections | egrep "^$pkg[[:space:]]+install"; then
  10.         apt-get "$@" -q -y -f install $pkg >/dev/null || true
  11.     fi
  12. done
  13.